/**
 * 
 */
package com.designpattern.design.decorator;

/**
 * 抽象类-饮料类
 * @author zhangyang
 *
 */
public abstract class Drink {
	/**
	 * 名称
	 */
	 private String desc;
	 
	 private float price=0.00f;
	
	/**
	 * 抽象方法 计算不同饮品价格
	 * @return
	 */
	 public abstract float cost();

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}


	
}
